/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.restlet.base;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.hyts.restlet.resource.SystemResource;

/** 
 * @title DispatcherApplication.java  
 * @package com.hyts.trestlet.base  
 * @description 基础操作的公共转发应用Rest请求  
 * @see org.restlet.Application
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月13日 
 * @version V1.0 
 */
public final class DispatcherApplication extends Application{

	/**  
	 * <p>{字段的描述}</p> 
	 * @fieldName logger
	 * @fieldType Logger
	 */ 
	private Logger logger = LoggerFactory.getLogger(DispatcherApplication.class);

	private static Set<Class<?>> routeList = new HashSet<Class<?>>();
	
	/* (非 Javadoc)
	 * @return
	 * @see javax.ws.rs.core.Application#getClasses()  
	 * @exception
	 */ 
	@Override
	public Set<Class<?>> getClasses() {
		routeList.add(SystemResource.class);
		return routeList;
	}

	/**  
	 * @name routeList's getter method
	 * @param none
	 * @return routeList
	 */
	public static Set<Class<?>> getRouteList() {
		return routeList;
	}
	
}
